<template>
	<logistics :wlInfo="wlInfo"></logistics>
</template>

<script>
import logistics from '@/components/xinyu-logistics/xinyu-logistics'
export default {
    components: { logistics },
	data(){
		return {
			id:0,
			wlInfo: {
				typename: '',
				number: '',
				deliverystatus: 0,
				list: []
			}
		}
	},
	onLoad(options) {
		this.id = options.id;
		if(!this.id){
			uni.navigateBack();
		}
		this.init();
	},
	onShow() {
		this.init();
	},
	methods:{
		init(){
			this.$u.get('order/wuliu',{id: this.id}).then(res => {
				this.wlInfo = res.data;
			}).catch(e => {
				console.log(e);
			});
		}
	}
}
</script>

<style lang="scss">
	
</style>
